/**
 * Copyright &copy; 2013-2016 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.elec.ad.entity;

import org.hibernate.validator.constraints.Length;

import cn.net.ecode.common.persistence.DataEntity;

/**
 * 广告管理Entity
 * @author AlanShelby
 * @version 2019-08-26
 */
public class ElecAd extends DataEntity<ElecAd> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// 类型
	private String title;		// 标题
	private String subTitle;		// 子标题
	
	public ElecAd() {
		super();
	}

	public ElecAd(String id){
		super();
		this.id = id;
	}

	@Length(min=0, max=64, message="类型长度不能超过 64 个字符")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=64, message="标题长度不能超过 64 个字符")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=64, message="子标题长度不能超过 64 个字符")
	public String getSubTitle() {
		return subTitle;
	}

	public void setSubTitle(String subTitle) {
		this.subTitle = subTitle;
	}
	
}